<div class="cl container">
  <div class="content">
    <div class="col8 article">
      <div class="detail">
        <div class="header">
          <div class="title"><%= @article.title %></div>
          <div class="info">
            <span><%= @article.published_at.to_s(:short) %></span>
            <span><b><%= @article.category.try :name %></b></span>
          </div>
        </div>
        <%= article_format_body @article.content.body %>
      </div>
      <div class="col12 clearfix nextandprev">
        <% unless @prev_article.blank? %>
            <%= link_to content_tag(:i, nil, class: 'icon-arrow-left') + content_tag(:span, @prev_article.title),
                        article_path(@prev_article.slug), class: 'pull-left' %>
        <% end %>
        <% unless @next_article.blank? %>
            <%= link_to content_tag(:span, @next_article.title) + content_tag(:i, nil, class: 'icon-arrow-right'),
                        article_path(@next_article.slug), class: 'pull-right' %>
        <% end %>
      </div>
    </div>
    <%= render 'share/side' %>
  </div>
</div>